package com.windfone.service.impl;

import java.util.List;

import com.windfone.dao.UserDao;
import com.windfone.model.User;
import com.windfone.service.UserService;

public class UserServiceImpl implements UserService {
	private UserDao userDao;
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public int deleteUser(int keValue) {
		return userDao.deleteUser(keValue);
	}
	public int getAllRecorderNumber() {
		return userDao.getAllRecorderNumber( );
	}

	public int updateUser(User bean) {
		return userDao.updateUser(bean);
	}

	public int insertUser(User bean) {
		return userDao.insertUser(bean);
	}

	public List<User> getUserById(int keyValue) {
		return userDao.getUserById(keyValue);
	}

	public List<User> getAllUser(int beginRecord) {
		return userDao.getAllUser( beginRecord );
	}

	public boolean checkAdminUser(String user, String password) {
		return userDao.checkAdminUser(user, password);
	}

	public boolean checkExistUser(String user) {
		return userDao.checkExistUser(user);
	}

	public User getUserByName(String user) {
		return userDao.getUserByName(user);
	}

}
